/*
 * VerProyecto.java
 *
 * Created on 22-nov-2008, 20:24:18
 */
package investigaciones_itm.Proyectos;

import com.sun.rave.faces.data.DefaultSelectItemsArray;
import com.sun.rave.web.ui.appbase.AbstractPageBean;
import com.sun.webui.jsf.component.Body;
import com.sun.webui.jsf.component.Button;
import com.sun.webui.jsf.component.Form;
import com.sun.webui.jsf.component.Head;
import com.sun.webui.jsf.component.Html;
import com.sun.webui.jsf.component.Link;
import com.sun.webui.jsf.component.Page;
import com.sun.webui.jsf.component.PanelLayout;
import com.sun.webui.jsf.component.StaticText;
import com.sun.webui.jsf.component.Tab;
import com.sun.webui.jsf.component.TabSet;
import com.sun.webui.jsf.component.Table;
import com.sun.webui.jsf.component.TableColumn;
import com.sun.webui.jsf.component.TableRowGroup;
import com.sun.webui.jsf.model.DefaultTableDataProvider;
import static itm.constants.FileConstants.*;
import itm.exception.ArchivoException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.FacesException;
import investigaciones_itm.SessionBean1;
import investigaciones_itm.RequestBean1;
import investigaciones_itm.ApplicationBean1;
import investigaciones_itm.upload.Archivo;
import itm.bo.productos.ProductosBO;
import itm.bo.proyectosInvestigacion.ProyectoInvestigacionBO;
import itm.vo.file.ArchivoVO;
import itm.vo.grupoInvestigacion.GrupoInvestigacionVO;
import itm.vo.lineaInvestigacion.LineaInvestigacionVO;
import itm.vo.personas.PersonaVO;
import itm.vo.prodructos.ProductoVO;
import itm.vo.proyectosInvestigacion.CriterioEvaluacionVO;
import itm.vo.proyectosInvestigacion.EvaluacionProyectoVO;
import itm.vo.proyectosInvestigacion.FuenteFinanciacionVO;
import itm.vo.proyectosInvestigacion.ProyectoInvestigacionTO;
import itm.vo.proyectosInvestigacion.ProyectoInvestigacionVO;
import itm.vo.proyectosInvestigacion.TipoInvestigacionVO;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.faces.component.UISelectItems;
import javax.faces.component.html.HtmlCommandButton;
import javax.faces.component.html.HtmlInputText;
import javax.faces.component.html.HtmlInputTextarea;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlPanelGrid;
import javax.faces.component.html.HtmlSelectManyListbox;
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
import javax.servlet.ServletContext;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>Page bean that corresponds to a similarly named JSP page.  This
 * class contains component definitions (and initialization code) for
 * all components that you have defined on this page, as well as
 * lifecycle methods and event handlers where you may add behavior
 * to respond to incoming events.</p>
 *
 * @author Administrador
 */
public class VerProyecto extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">

    /**
     * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
     * This method is automatically generated, so any user-specified code inserted
     * here is subject to being replaced.</p>
     */
    private void _init() throws Exception {
    }
    private Page page1 = new Page();

    public Page getPage1() {
        return page1;
    }

    public void setPage1(Page p) {
        this.page1 = p;
    }
    private Html html1 = new Html();

    public Html getHtml1() {
        return html1;
    }

    public void setHtml1(Html h) {
        this.html1 = h;
    }
    private Head head1 = new Head();

    public Head getHead1() {
        return head1;
    }

    public void setHead1(Head h) {
        this.head1 = h;
    }
    private Link link1 = new Link();

    public Link getLink1() {
        return link1;
    }

    public void setLink1(Link l) {
        this.link1 = l;
    }
    private Body body1 = new Body();

    public Body getBody1() {
        return body1;
    }

    public void setBody1(Body b) {
        this.body1 = b;
    }
    private Form form1 = new Form();

    public Form getForm1() {
        return form1;
    }

    public void setForm1(Form f) {
        this.form1 = f;
    }
    private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel1() {
        return gridPanel1;
    }

    public void setGridPanel1(HtmlPanelGrid hpg) {
        this.gridPanel1 = hpg;
    }
    private TabSet tabSet1 = new TabSet();

    public TabSet getTabSet1() {
        return tabSet1;
    }

    public void setTabSet1(TabSet ts) {
        this.tabSet1 = ts;
    }
    private Tab tab1 = new Tab();

    public Tab getTab1() {
        return tab1;
    }

    public void setTab1(Tab t) {
        this.tab1 = t;
    }
    private PanelLayout layoutPanel1 = new PanelLayout();

    public PanelLayout getLayoutPanel1() {
        return layoutPanel1;
    }

    public void setLayoutPanel1(PanelLayout pl) {
        this.layoutPanel1 = pl;
    }
    private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel2() {
        return gridPanel2;
    }

    public void setGridPanel2(HtmlPanelGrid hpg) {
        this.gridPanel2 = hpg;
    }
    private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel3() {
        return gridPanel3;
    }

    public void setGridPanel3(HtmlPanelGrid hpg) {
        this.gridPanel3 = hpg;
    }
    private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel4() {
        return gridPanel4;
    }

    public void setGridPanel4(HtmlPanelGrid hpg) {
        this.gridPanel4 = hpg;
    }
    private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel5() {
        return gridPanel5;
    }

    public void setGridPanel5(HtmlPanelGrid hpg) {
        this.gridPanel5 = hpg;
    }
    private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel6() {
        return gridPanel6;
    }

    public void setGridPanel6(HtmlPanelGrid hpg) {
        this.gridPanel6 = hpg;
    }
    private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel7() {
        return gridPanel7;
    }

    public void setGridPanel7(HtmlPanelGrid hpg) {
        this.gridPanel7 = hpg;
    }
    private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel8() {
        return gridPanel8;
    }

    public void setGridPanel8(HtmlPanelGrid hpg) {
        this.gridPanel8 = hpg;
    }
    private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel9() {
        return gridPanel9;
    }

    public void setGridPanel9(HtmlPanelGrid hpg) {
        this.gridPanel9 = hpg;
    }
    private HtmlPanelGrid gridPanel10 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel10() {
        return gridPanel10;
    }

    public void setGridPanel10(HtmlPanelGrid hpg) {
        this.gridPanel10 = hpg;
    }
    private HtmlPanelGrid gridPanel11 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel11() {
        return gridPanel11;
    }

    public void setGridPanel11(HtmlPanelGrid hpg) {
        this.gridPanel11 = hpg;
    }
    private HtmlPanelGrid gridPanel12 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel12() {
        return gridPanel12;
    }

    public void setGridPanel12(HtmlPanelGrid hpg) {
        this.gridPanel12 = hpg;
    }
    private HtmlPanelGrid gridPanel13 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel13() {
        return gridPanel13;
    }

    public void setGridPanel13(HtmlPanelGrid hpg) {
        this.gridPanel13 = hpg;
    }
    private HtmlPanelGrid gridPanel14 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel14() {
        return gridPanel14;
    }

    public void setGridPanel14(HtmlPanelGrid hpg) {
        this.gridPanel14 = hpg;
    }
    private HtmlPanelGrid gridPanel15 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel15() {
        return gridPanel15;
    }

    public void setGridPanel15(HtmlPanelGrid hpg) {
        this.gridPanel15 = hpg;
    }
    private HtmlPanelGrid gridPanel16 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel16() {
        return gridPanel16;
    }

    public void setGridPanel16(HtmlPanelGrid hpg) {
        this.gridPanel16 = hpg;
    }
    private HtmlPanelGrid gridPanel17 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel17() {
        return gridPanel17;
    }

    public void setGridPanel17(HtmlPanelGrid hpg) {
        this.gridPanel17 = hpg;
    }
    private HtmlOutputText outputText1 = new HtmlOutputText();

    public HtmlOutputText getOutputText1() {
        return outputText1;
    }

    public void setOutputText1(HtmlOutputText hot) {
        this.outputText1 = hot;
    }
    private HtmlOutputText outputText2 = new HtmlOutputText();

    public HtmlOutputText getOutputText2() {
        return outputText2;
    }

    public void setOutputText2(HtmlOutputText hot) {
        this.outputText2 = hot;
    }
    private HtmlOutputText outputText3 = new HtmlOutputText();

    public HtmlOutputText getOutputText3() {
        return outputText3;
    }

    public void setOutputText3(HtmlOutputText hot) {
        this.outputText3 = hot;
    }
    private HtmlOutputText outputText4 = new HtmlOutputText();

    public HtmlOutputText getOutputText4() {
        return outputText4;
    }

    public void setOutputText4(HtmlOutputText hot) {
        this.outputText4 = hot;
    }
    private HtmlOutputText outputText5 = new HtmlOutputText();

    public HtmlOutputText getOutputText5() {
        return outputText5;
    }

    public void setOutputText5(HtmlOutputText hot) {
        this.outputText5 = hot;
    }
    private HtmlOutputText outputText6 = new HtmlOutputText();

    public HtmlOutputText getOutputText6() {
        return outputText6;
    }

    public void setOutputText6(HtmlOutputText hot) {
        this.outputText6 = hot;
    }
    private HtmlOutputText outputText7 = new HtmlOutputText();

    public HtmlOutputText getOutputText7() {
        return outputText7;
    }

    public void setOutputText7(HtmlOutputText hot) {
        this.outputText7 = hot;
    }
    private HtmlInputTextarea textAreaTituloProyecto = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaTituloProyecto() {
        return textAreaTituloProyecto;
    }

    public void setTextAreaTituloProyecto(HtmlInputTextarea hit) {
        this.textAreaTituloProyecto = hit;
    }
    private HtmlInputText textFieldFechaProyecto = new HtmlInputText();

    public HtmlInputText getTextFieldFechaProyecto() {
        return textFieldFechaProyecto;
    }

    public void setTextFieldFechaProyecto(HtmlInputText hit) {
        this.textFieldFechaProyecto = hit;
    }
    private HtmlInputText textFieldLineaProyecto = new HtmlInputText();

    public HtmlInputText getTextFieldLineaProyecto() {
        return textFieldLineaProyecto;
    }

    public void setTextFieldLineaProyecto(HtmlInputText hit) {
        this.textFieldLineaProyecto = hit;
    }
    private HtmlSelectManyListbox multiSelectListboxFuentesFinanciacion = new HtmlSelectManyListbox();

    public HtmlSelectManyListbox getMultiSelectListboxFuentesFinanciacion() {
        return multiSelectListboxFuentesFinanciacion;
    }

    public void setMultiSelectListboxFuentesFinanciacion(HtmlSelectManyListbox hsml) {
        this.multiSelectListboxFuentesFinanciacion = hsml;
    }
    private UISelectItems multiSelectListbox1SelectItems = new UISelectItems();

    public UISelectItems getMultiSelectListbox1SelectItems() {
        return multiSelectListbox1SelectItems;
    }

    public void setMultiSelectListbox1SelectItems(UISelectItems uisi) {
        this.multiSelectListbox1SelectItems = uisi;
    }
    private HtmlInputText textFieldTipoProyecto = new HtmlInputText();

    public HtmlInputText getTextFieldTipoProyecto() {
        return textFieldTipoProyecto;
    }

    public void setTextFieldTipoProyecto(HtmlInputText hit) {
        this.textFieldTipoProyecto = hit;
    }
    private HtmlInputText textFieldDuracionProyecto = new HtmlInputText();

    public HtmlInputText getTextFieldDuracionProyecto() {
        return textFieldDuracionProyecto;
    }

    public void setTextFieldDuracionProyecto(HtmlInputText hit) {
        this.textFieldDuracionProyecto = hit;
    }
    private HtmlPanelGrid gridPanel18 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel18() {
        return gridPanel18;
    }

    public void setGridPanel18(HtmlPanelGrid hpg) {
        this.gridPanel18 = hpg;
    }
    private HtmlPanelGrid gridPanel19 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel19() {
        return gridPanel19;
    }

    public void setGridPanel19(HtmlPanelGrid hpg) {
        this.gridPanel19 = hpg;
    }
    private HtmlPanelGrid gridPanel20 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel20() {
        return gridPanel20;
    }

    public void setGridPanel20(HtmlPanelGrid hpg) {
        this.gridPanel20 = hpg;
    }
    private HtmlPanelGrid gridPanel21 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel21() {
        return gridPanel21;
    }

    public void setGridPanel21(HtmlPanelGrid hpg) {
        this.gridPanel21 = hpg;
    }
    private HtmlPanelGrid gridPanel22 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel22() {
        return gridPanel22;
    }

    public void setGridPanel22(HtmlPanelGrid hpg) {
        this.gridPanel22 = hpg;
    }
    private HtmlPanelGrid gridPanel23 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel23() {
        return gridPanel23;
    }

    public void setGridPanel23(HtmlPanelGrid hpg) {
        this.gridPanel23 = hpg;
    }
    private HtmlPanelGrid gridPanel24 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel24() {
        return gridPanel24;
    }

    public void setGridPanel24(HtmlPanelGrid hpg) {
        this.gridPanel24 = hpg;
    }
    private HtmlPanelGrid gridPanel25 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel25() {
        return gridPanel25;
    }

    public void setGridPanel25(HtmlPanelGrid hpg) {
        this.gridPanel25 = hpg;
    }
    private HtmlPanelGrid gridPanel26 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel26() {
        return gridPanel26;
    }

    public void setGridPanel26(HtmlPanelGrid hpg) {
        this.gridPanel26 = hpg;
    }
    private HtmlPanelGrid gridPanel27 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel27() {
        return gridPanel27;
    }

    public void setGridPanel27(HtmlPanelGrid hpg) {
        this.gridPanel27 = hpg;
    }
    private HtmlPanelGrid gridPanel28 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel28() {
        return gridPanel28;
    }

    public void setGridPanel28(HtmlPanelGrid hpg) {
        this.gridPanel28 = hpg;
    }
    private HtmlPanelGrid gridPanel29 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel29() {
        return gridPanel29;
    }

    public void setGridPanel29(HtmlPanelGrid hpg) {
        this.gridPanel29 = hpg;
    }
    private HtmlPanelGrid gridPanel30 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel30() {
        return gridPanel30;
    }

    public void setGridPanel30(HtmlPanelGrid hpg) {
        this.gridPanel30 = hpg;
    }
    private HtmlPanelGrid gridPanel31 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel31() {
        return gridPanel31;
    }

    public void setGridPanel31(HtmlPanelGrid hpg) {
        this.gridPanel31 = hpg;
    }
    private HtmlOutputText outputText8 = new HtmlOutputText();

    public HtmlOutputText getOutputText8() {
        return outputText8;
    }

    public void setOutputText8(HtmlOutputText hot) {
        this.outputText8 = hot;
    }
    private HtmlOutputText outputText9 = new HtmlOutputText();

    public HtmlOutputText getOutputText9() {
        return outputText9;
    }

    public void setOutputText9(HtmlOutputText hot) {
        this.outputText9 = hot;
    }
    private HtmlOutputText outputText10 = new HtmlOutputText();

    public HtmlOutputText getOutputText10() {
        return outputText10;
    }

    public void setOutputText10(HtmlOutputText hot) {
        this.outputText10 = hot;
    }
    private HtmlInputText textFieldElaboradoPor = new HtmlInputText();

    public HtmlInputText getTextFieldElaboradoPor() {
        return textFieldElaboradoPor;
    }

    public void setTextFieldElaboradoPor(HtmlInputText hit) {
        this.textFieldElaboradoPor = hit;
    }
    private HtmlOutputText outputText11 = new HtmlOutputText();

    public HtmlOutputText getOutputText11() {
        return outputText11;
    }

    public void setOutputText11(HtmlOutputText hot) {
        this.outputText11 = hot;
    }
    private HtmlOutputText outputText12 = new HtmlOutputText();

    public HtmlOutputText getOutputText12() {
        return outputText12;
    }

    public void setOutputText12(HtmlOutputText hot) {
        this.outputText12 = hot;
    }
    private HtmlOutputText outputText13 = new HtmlOutputText();

    public HtmlOutputText getOutputText13() {
        return outputText13;
    }

    public void setOutputText13(HtmlOutputText hot) {
        this.outputText13 = hot;
    }
    private HtmlOutputText outputText14 = new HtmlOutputText();

    public HtmlOutputText getOutputText14() {
        return outputText14;
    }

    public void setOutputText14(HtmlOutputText hot) {
        this.outputText14 = hot;
    }
    private HtmlPanelGrid gridPanel32 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel32() {
        return gridPanel32;
    }

    public void setGridPanel32(HtmlPanelGrid hpg) {
        this.gridPanel32 = hpg;
    }
    private HtmlCommandButton buttonRevision = new HtmlCommandButton();

    public HtmlCommandButton getButtonRevision() {
        return buttonRevision;
    }

    public void setButtonRevision(HtmlCommandButton hcb) {
        this.buttonRevision = hcb;
    }
    private HtmlCommandButton buttonFinalizacionCierre = new HtmlCommandButton();

    public HtmlCommandButton getButtonFinalizacionCierre() {
        return buttonFinalizacionCierre;
    }

    public void setButtonFinalizacionCierre(HtmlCommandButton hcb) {
        this.buttonFinalizacionCierre = hcb;
    }
    private HtmlCommandButton buttonAvanceActividades = new HtmlCommandButton();

    public HtmlCommandButton getButtonAvanceActividades() {
        return buttonAvanceActividades;
    }

    public void setButtonAvanceActividades(HtmlCommandButton hcb) {
        this.buttonAvanceActividades = hcb;
    }
    private HtmlSelectManyListbox multiSelectListboxProductos = new HtmlSelectManyListbox();

    public HtmlSelectManyListbox getMultiSelectListboxProductos() {
        return multiSelectListboxProductos;
    }

    public void setMultiSelectListboxProductos(HtmlSelectManyListbox hsml) {
        this.multiSelectListboxProductos = hsml;
    }
    private UISelectItems multiSelectListbox1SelectItems1 = new UISelectItems();

    public UISelectItems getMultiSelectListbox1SelectItems1() {
        return multiSelectListbox1SelectItems1;
    }

    public void setMultiSelectListbox1SelectItems1(UISelectItems uisi) {
        this.multiSelectListbox1SelectItems1 = uisi;
    }
    private DefaultSelectItemsArray multiSelectListbox1DefaultItems2 = new DefaultSelectItemsArray();

    public DefaultSelectItemsArray getMultiSelectListbox1DefaultItems2() {
        return multiSelectListbox1DefaultItems2;
    }

    public void setMultiSelectListbox1DefaultItems2(DefaultSelectItemsArray dsia) {
        this.multiSelectListbox1DefaultItems2 = dsia;
    }
    private HtmlSelectManyListbox multiSelectListboxEstidiantes = new HtmlSelectManyListbox();

    public HtmlSelectManyListbox getMultiSelectListboxEstidiantes() {
        return multiSelectListboxEstidiantes;
    }

    public void setMultiSelectListboxEstidiantes(HtmlSelectManyListbox hsml) {
        this.multiSelectListboxEstidiantes = hsml;
    }
    private UISelectItems multiSelectListbox2SelectItems = new UISelectItems();

    public UISelectItems getMultiSelectListbox2SelectItems() {
        return multiSelectListbox2SelectItems;
    }

    public void setMultiSelectListbox2SelectItems(UISelectItems uisi) {
        this.multiSelectListbox2SelectItems = uisi;
    }
    private HtmlSelectManyListbox multiSelectListboxTecnicoLab = new HtmlSelectManyListbox();

    public HtmlSelectManyListbox getMultiSelectListboxTecnicoLab() {
        return multiSelectListboxTecnicoLab;
    }

    public void setMultiSelectListboxTecnicoLab(HtmlSelectManyListbox hsml) {
        this.multiSelectListboxTecnicoLab = hsml;
    }
    private UISelectItems multiSelectListbox3SelectItems = new UISelectItems();

    public UISelectItems getMultiSelectListbox3SelectItems() {
        return multiSelectListbox3SelectItems;
    }

    public void setMultiSelectListbox3SelectItems(UISelectItems uisi) {
        this.multiSelectListbox3SelectItems = uisi;
    }
    private HtmlSelectManyListbox multiSelectListboxCoInvestigador = new HtmlSelectManyListbox();

    public HtmlSelectManyListbox getMultiSelectListboxCoInvestigador() {
        return multiSelectListboxCoInvestigador;
    }

    public void setMultiSelectListboxCoInvestigador(HtmlSelectManyListbox hsml) {
        this.multiSelectListboxCoInvestigador = hsml;
    }
    private UISelectItems multiSelectListbox4SelectItems = new UISelectItems();

    public UISelectItems getMultiSelectListbox4SelectItems() {
        return multiSelectListbox4SelectItems;
    }

    public void setMultiSelectListbox4SelectItems(UISelectItems uisi) {
        this.multiSelectListbox4SelectItems = uisi;
    }
    private HtmlInputText textFieldInvestigadorPrincipal = new HtmlInputText();

    public HtmlInputText getTextFieldInvestigadorPrincipal() {
        return textFieldInvestigadorPrincipal;
    }

    public void setTextFieldInvestigadorPrincipal(HtmlInputText hit) {
        this.textFieldInvestigadorPrincipal = hit;
    }
    private HtmlInputTextarea textAreaPalabrasClave = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaPalabrasClave() {
        return textAreaPalabrasClave;
    }

    public void setTextAreaPalabrasClave(HtmlInputTextarea hit) {
        this.textAreaPalabrasClave = hit;
    }
    private Tab tab2 = new Tab();

    public Tab getTab2() {
        return tab2;
    }

    public void setTab2(Tab t) {
        this.tab2 = t;
    }
    private PanelLayout layoutPanel2 = new PanelLayout();

    public PanelLayout getLayoutPanel2() {
        return layoutPanel2;
    }

    public void setLayoutPanel2(PanelLayout pl) {
        this.layoutPanel2 = pl;
    }
    private Tab tab3 = new Tab();

    public Tab getTab3() {
        return tab3;
    }

    public void setTab3(Tab t) {
        this.tab3 = t;
    }
    private PanelLayout layoutPanel3 = new PanelLayout();

    public PanelLayout getLayoutPanel3() {
        return layoutPanel3;
    }

    public void setLayoutPanel3(PanelLayout pl) {
        this.layoutPanel3 = pl;
    }
    private HtmlPanelGrid gridPanel34 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel34() {
        return gridPanel34;
    }

    public void setGridPanel34(HtmlPanelGrid hpg) {
        this.gridPanel34 = hpg;
    }
    private HtmlOutputText outputText15 = new HtmlOutputText();

    public HtmlOutputText getOutputText15() {
        return outputText15;
    }

    public void setOutputText15(HtmlOutputText hot) {
        this.outputText15 = hot;
    }
    private HtmlOutputText outputText16 = new HtmlOutputText();

    public HtmlOutputText getOutputText16() {
        return outputText16;
    }

    public void setOutputText16(HtmlOutputText hot) {
        this.outputText16 = hot;
    }
    private HtmlOutputText outputText17 = new HtmlOutputText();

    public HtmlOutputText getOutputText17() {
        return outputText17;
    }

    public void setOutputText17(HtmlOutputText hot) {
        this.outputText17 = hot;
    }
    private HtmlOutputText outputText18 = new HtmlOutputText();

    public HtmlOutputText getOutputText18() {
        return outputText18;
    }

    public void setOutputText18(HtmlOutputText hot) {
        this.outputText18 = hot;
    }
    private HtmlOutputText outputText19 = new HtmlOutputText();

    public HtmlOutputText getOutputText19() {
        return outputText19;
    }

    public void setOutputText19(HtmlOutputText hot) {
        this.outputText19 = hot;
    }
    private HtmlOutputText outputText20 = new HtmlOutputText();

    public HtmlOutputText getOutputText20() {
        return outputText20;
    }

    public void setOutputText20(HtmlOutputText hot) {
        this.outputText20 = hot;
    }
    private HtmlOutputText outputText21 = new HtmlOutputText();

    public HtmlOutputText getOutputText21() {
        return outputText21;
    }

    public void setOutputText21(HtmlOutputText hot) {
        this.outputText21 = hot;
    }
    private HtmlInputTextarea textAreaResumenProyecto = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaResumenProyecto() {
        return textAreaResumenProyecto;
    }

    public void setTextAreaResumenProyecto(HtmlInputTextarea hit) {
        this.textAreaResumenProyecto = hit;
    }
    private HtmlInputTextarea textAreaPLnteamientoJustificacion = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaPLnteamientoJustificacion() {
        return textAreaPLnteamientoJustificacion;
    }

    public void setTextAreaPLnteamientoJustificacion(HtmlInputTextarea hit) {
        this.textAreaPLnteamientoJustificacion = hit;
    }
    private HtmlInputTextarea textAreaObjetivoGeneral = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaObjetivoGeneral() {
        return textAreaObjetivoGeneral;
    }

    public void setTextAreaObjetivoGeneral(HtmlInputTextarea hit) {
        this.textAreaObjetivoGeneral = hit;
    }
    private HtmlPanelGrid gridPanel33 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel33() {
        return gridPanel33;
    }

    public void setGridPanel33(HtmlPanelGrid hpg) {
        this.gridPanel33 = hpg;
    }
    private HtmlPanelGrid gridPanel35 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel35() {
        return gridPanel35;
    }

    public void setGridPanel35(HtmlPanelGrid hpg) {
        this.gridPanel35 = hpg;
    }
    private HtmlPanelGrid gridPanel36 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel36() {
        return gridPanel36;
    }

    public void setGridPanel36(HtmlPanelGrid hpg) {
        this.gridPanel36 = hpg;
    }
    private HtmlPanelGrid gridPanel37 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel37() {
        return gridPanel37;
    }

    public void setGridPanel37(HtmlPanelGrid hpg) {
        this.gridPanel37 = hpg;
    }
    private HtmlPanelGrid gridPanel38 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel38() {
        return gridPanel38;
    }

    public void setGridPanel38(HtmlPanelGrid hpg) {
        this.gridPanel38 = hpg;
    }
    private HtmlPanelGrid gridPanel39 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel39() {
        return gridPanel39;
    }

    public void setGridPanel39(HtmlPanelGrid hpg) {
        this.gridPanel39 = hpg;
    }
    private HtmlPanelGrid gridPanel40 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel40() {
        return gridPanel40;
    }

    public void setGridPanel40(HtmlPanelGrid hpg) {
        this.gridPanel40 = hpg;
    }
    private HtmlPanelGrid gridPanel41 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel41() {
        return gridPanel41;
    }

    public void setGridPanel41(HtmlPanelGrid hpg) {
        this.gridPanel41 = hpg;
    }
    private HtmlPanelGrid gridPanel44 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel44() {
        return gridPanel44;
    }

    public void setGridPanel44(HtmlPanelGrid hpg) {
        this.gridPanel44 = hpg;
    }
    private HtmlPanelGrid gridPanel46 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel46() {
        return gridPanel46;
    }

    public void setGridPanel46(HtmlPanelGrid hpg) {
        this.gridPanel46 = hpg;
    }
    private HtmlPanelGrid gridPanel48 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel48() {
        return gridPanel48;
    }

    public void setGridPanel48(HtmlPanelGrid hpg) {
        this.gridPanel48 = hpg;
    }
    private HtmlPanelGrid gridPanel49 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel49() {
        return gridPanel49;
    }

    public void setGridPanel49(HtmlPanelGrid hpg) {
        this.gridPanel49 = hpg;
    }
    private HtmlPanelGrid gridPanel50 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel50() {
        return gridPanel50;
    }

    public void setGridPanel50(HtmlPanelGrid hpg) {
        this.gridPanel50 = hpg;
    }
    private HtmlPanelGrid gridPanel51 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel51() {
        return gridPanel51;
    }

    public void setGridPanel51(HtmlPanelGrid hpg) {
        this.gridPanel51 = hpg;
    }
    private HtmlPanelGrid gridPanel52 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel52() {
        return gridPanel52;
    }

    public void setGridPanel52(HtmlPanelGrid hpg) {
        this.gridPanel52 = hpg;
    }
    private HtmlInputTextarea textAreaObjetivoEspecifico = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaObjetivoEspecifico() {
        return textAreaObjetivoEspecifico;
    }

    public void setTextAreaObjetivoEspecifico(HtmlInputTextarea hit) {
        this.textAreaObjetivoEspecifico = hit;
    }
    private HtmlInputTextarea textAreaMetodologias = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaMetodologias() {
        return textAreaMetodologias;
    }

    public void setTextAreaMetodologias(HtmlInputTextarea hit) {
        this.textAreaMetodologias = hit;
    }
    private HtmlInputTextarea textAreaImpactos = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaImpactos() {
        return textAreaImpactos;
    }

    public void setTextAreaImpactos(HtmlInputTextarea hit) {
        this.textAreaImpactos = hit;
    }
    private HtmlInputTextarea textAreaBibliografiaRef = new HtmlInputTextarea();

    public HtmlInputTextarea getTextAreaBibliografiaRef() {
        return textAreaBibliografiaRef;
    }

    public void setTextAreaBibliografiaRef(HtmlInputTextarea hit) {
        this.textAreaBibliografiaRef = hit;
    }
    private Table table1 = new Table();

    public Table getTable1() {
        return table1;
    }

    public void setTable1(Table t) {
        this.table1 = t;
    }
    private TableRowGroup tableRowGroup1 = new TableRowGroup();

    public TableRowGroup getTableRowGroup1() {
        return tableRowGroup1;
    }

    public void setTableRowGroup1(TableRowGroup trg) {
        this.tableRowGroup1 = trg;
    }
    private Tab tab4 = new Tab();

    public Tab getTab4() {
        return tab4;
    }

    public void setTab4(Tab t) {
        this.tab4 = t;
    }
    private PanelLayout layoutPanel4 = new PanelLayout();

    public PanelLayout getLayoutPanel4() {
        return layoutPanel4;
    }

    public void setLayoutPanel4(PanelLayout pl) {
        this.layoutPanel4 = pl;
    }
    private HtmlPanelGrid gridPanel42 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel42() {
        return gridPanel42;
    }

    public void setGridPanel42(HtmlPanelGrid hpg) {
        this.gridPanel42 = hpg;
    }
    private Table tableVerAnexos = new Table();

    public Table getTableVerAnexos() {
        return tableVerAnexos;
    }

    public void setTableVerAnexos(Table t) {
        this.tableVerAnexos = t;
    }
    private TableRowGroup tableRowGroup2 = new TableRowGroup();

    public TableRowGroup getTableRowGroup2() {
        return tableRowGroup2;
    }

    public void setTableRowGroup2(TableRowGroup trg) {
        this.tableRowGroup2 = trg;
    }
    private HtmlPanelGrid gridPanel43 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel43() {
        return gridPanel43;
    }

    public void setGridPanel43(HtmlPanelGrid hpg) {
        this.gridPanel43 = hpg;
    }
    private HtmlPanelGrid gridPanel45 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel45() {
        return gridPanel45;
    }

    public void setGridPanel45(HtmlPanelGrid hpg) {
        this.gridPanel45 = hpg;
    }
    private HtmlOutputText outputText22 = new HtmlOutputText();

    public HtmlOutputText getOutputText22() {
        return outputText22;
    }

    public void setOutputText22(HtmlOutputText hot) {
        this.outputText22 = hot;
    }
    private HtmlInputText textFieldIdProyecto = new HtmlInputText();

    public HtmlInputText getTextFieldIdProyecto() {
        return textFieldIdProyecto;
    }

    public void setTextFieldIdProyecto(HtmlInputText hit) {
        this.textFieldIdProyecto = hit;
    }
    private HtmlSelectManyListbox multiSelectListboxGrupos = new HtmlSelectManyListbox();

    public HtmlSelectManyListbox getMultiSelectListboxGrupos() {
        return multiSelectListboxGrupos;
    }

    public void setMultiSelectListboxGrupos(HtmlSelectManyListbox hsml) {
        this.multiSelectListboxGrupos = hsml;
    }
    private DefaultSelectItemsArray multiSelectListbox1DefaultItems = new DefaultSelectItemsArray();

    public DefaultSelectItemsArray getMultiSelectListbox1DefaultItems() {
        return multiSelectListbox1DefaultItems;
    }

    public void setMultiSelectListbox1DefaultItems(DefaultSelectItemsArray dsia) {
        this.multiSelectListbox1DefaultItems = dsia;
    }
    private UISelectItems multiSelectListbox1SelectItems2 = new UISelectItems();

    public UISelectItems getMultiSelectListbox1SelectItems2() {
        return multiSelectListbox1SelectItems2;
    }

    public void setMultiSelectListbox1SelectItems2(UISelectItems uisi) {
        this.multiSelectListbox1SelectItems2 = uisi;
    }
    private TableColumn tableColumn7 = new TableColumn();

    public TableColumn getTableColumn7() {
        return tableColumn7;
    }

    public void setTableColumn7(TableColumn tc) {
        this.tableColumn7 = tc;
    }
    private StaticText staticText7 = new StaticText();

    public StaticText getStaticText7() {
        return staticText7;
    }

    public void setStaticText7(StaticText st) {
        this.staticText7 = st;
    }
    private TableColumn tableColumn8 = new TableColumn();

    public TableColumn getTableColumn8() {
        return tableColumn8;
    }

    public void setTableColumn8(TableColumn tc) {
        this.tableColumn8 = tc;
    }
    private StaticText staticText8 = new StaticText();

    public StaticText getStaticText8() {
        return staticText8;
    }

    public void setStaticText8(StaticText st) {
        this.staticText8 = st;
    }
    private TableColumn tableColumn9 = new TableColumn();

    public TableColumn getTableColumn9() {
        return tableColumn9;
    }

    public void setTableColumn9(TableColumn tc) {
        this.tableColumn9 = tc;
    }
    private StaticText staticText9 = new StaticText();

    public StaticText getStaticText9() {
        return staticText9;
    }

    public void setStaticText9(StaticText st) {
        this.staticText9 = st;
    }
    private TableColumn tableColumn10 = new TableColumn();

    public TableColumn getTableColumn10() {
        return tableColumn10;
    }

    public void setTableColumn10(TableColumn tc) {
        this.tableColumn10 = tc;
    }
    private StaticText staticText10 = new StaticText();

    public StaticText getStaticText10() {
        return staticText10;
    }

    public void setStaticText10(StaticText st) {
        this.staticText10 = st;
    }
    private TableColumn tableColumn11 = new TableColumn();

    public TableColumn getTableColumn11() {
        return tableColumn11;
    }

    public void setTableColumn11(TableColumn tc) {
        this.tableColumn11 = tc;
    }
    private StaticText staticText11 = new StaticText();

    public StaticText getStaticText11() {
        return staticText11;
    }

    public void setStaticText11(StaticText st) {
        this.staticText11 = st;
    }
    private TableColumn tableColumn12 = new TableColumn();

    public TableColumn getTableColumn12() {
        return tableColumn12;
    }

    public void setTableColumn12(TableColumn tc) {
        this.tableColumn12 = tc;
    }
    private TableColumn tableColumn13 = new TableColumn();

    public TableColumn getTableColumn13() {
        return tableColumn13;
    }

    public void setTableColumn13(TableColumn tc) {
        this.tableColumn13 = tc;
    }
    private StaticText staticText13 = new StaticText();

    public StaticText getStaticText13() {
        return staticText13;
    }

    public void setStaticText13(StaticText st) {
        this.staticText13 = st;
    }
    private Button buttonDescargarAnexo = new Button();

    public Button getButtonDescargarAnexo() {
        return buttonDescargarAnexo;
    }

    public void setButtonDescargarAnexo(Button b) {
        this.buttonDescargarAnexo = b;
    }
    private HtmlCommandButton buttonVolver = new HtmlCommandButton();

    public HtmlCommandButton getButtonVolver() {
        return buttonVolver;
    }

    public void setButtonVolver(HtmlCommandButton hcb) {
        this.buttonVolver = hcb;
    }
    private HtmlCommandButton buttonAnexoInfo = new HtmlCommandButton();

    public HtmlCommandButton getButtonAnexoInfo() {
        return buttonAnexoInfo;
    }

    public void setButtonAnexoInfo(HtmlCommandButton hcb) {
        this.buttonAnexoInfo = hcb;
    }
    private Table table2 = new Table();

    public Table getTable2() {
        return table2;
    }

    public void setTable2(Table t) {
        this.table2 = t;
    }
    private TableRowGroup tableRowGroup3 = new TableRowGroup();

    public TableRowGroup getTableRowGroup3() {
        return tableRowGroup3;
    }

    public void setTableRowGroup3(TableRowGroup trg) {
        this.tableRowGroup3 = trg;
    }
    private TableColumn tableColumn14 = new TableColumn();

    public TableColumn getTableColumn14() {
        return tableColumn14;
    }

    public void setTableColumn14(TableColumn tc) {
        this.tableColumn14 = tc;
    }
    private StaticText staticText12 = new StaticText();

    public StaticText getStaticText12() {
        return staticText12;
    }

    public void setStaticText12(StaticText st) {
        this.staticText12 = st;
    }
    private TableColumn tableColumn15 = new TableColumn();

    public TableColumn getTableColumn15() {
        return tableColumn15;
    }

    public void setTableColumn15(TableColumn tc) {
        this.tableColumn15 = tc;
    }
    private StaticText staticText14 = new StaticText();

    public StaticText getStaticText14() {
        return staticText14;
    }

    public void setStaticText14(StaticText st) {
        this.staticText14 = st;
    }
    private TableColumn tableColumn16 = new TableColumn();

    public TableColumn getTableColumn16() {
        return tableColumn16;
    }

    public void setTableColumn16(TableColumn tc) {
        this.tableColumn16 = tc;
    }
    private StaticText staticText15 = new StaticText();

    public StaticText getStaticText15() {
        return staticText15;
    }

    public void setStaticText15(StaticText st) {
        this.staticText15 = st;
    }
    private TableColumn tableColumn1 = new TableColumn();

    public TableColumn getTableColumn1() {
        return tableColumn1;
    }

    public void setTableColumn1(TableColumn tc) {
        this.tableColumn1 = tc;
    }
    private StaticText staticText1 = new StaticText();

    public StaticText getStaticText1() {
        return staticText1;
    }

    public void setStaticText1(StaticText st) {
        this.staticText1 = st;
    }
    private TableColumn tableColumn2 = new TableColumn();

    public TableColumn getTableColumn2() {
        return tableColumn2;
    }

    public void setTableColumn2(TableColumn tc) {
        this.tableColumn2 = tc;
    }
    private StaticText staticText2 = new StaticText();

    public StaticText getStaticText2() {
        return staticText2;
    }

    public void setStaticText2(StaticText st) {
        this.staticText2 = st;
    }
    private HtmlPanelGrid gridPanel47 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel47() {
        return gridPanel47;
    }

    public void setGridPanel47(HtmlPanelGrid hpg) {
        this.gridPanel47 = hpg;
    }
    private HtmlPanelGrid gridPanel53 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel53() {
        return gridPanel53;
    }

    public void setGridPanel53(HtmlPanelGrid hpg) {
        this.gridPanel53 = hpg;
    }
    private HtmlOutputText outputText23 = new HtmlOutputText();

    public HtmlOutputText getOutputText23() {
        return outputText23;
    }

    public void setOutputText23(HtmlOutputText hot) {
        this.outputText23 = hot;
    }
    private HtmlInputText textFieldEstadoProyecto = new HtmlInputText();

    public HtmlInputText getTextFieldEstadoProyecto() {
        return textFieldEstadoProyecto;
    }

    public void setTextFieldEstadoProyecto(HtmlInputText hit) {
        this.textFieldEstadoProyecto = hit;
    }

    // </editor-fold>
    /**
     * <p>Construct a new Page bean instance.</p>
     */
    public VerProyecto() {
    }

    /**
     * <p>Callback method that is called whenever a page is navigated to,
     * either directly via a URL, or indirectly via page navigation.
     * Customize this method to acquire resources that will be needed
     * for event handlers and lifecycle methods, whether or not this
     * page is performing post back processing.</p>
     * 
     * <p>Note that, if the current request is a postback, the property
     * values of the components do <strong>not</strong> represent any
     * values submitted with this request.  Instead, they represent the
     * property values that were saved for this view when it was rendered.</p>
     */
    @Override
    public void init() {
        // Perform initializations inherited from our superclass
        super.init();
        // Perform application initialization that must complete
        // *before* managed components are initialized
        // TODO - add your own initialiation code here

        // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
        // Initialize automatically managed components
        // *Note* - this logic should NOT be modified
        try {
            _init();
        } catch (Exception e) {
            log("VerProyecto Initialization Failure", e);
            throw e instanceof FacesException ? (FacesException) e : new FacesException(e);
        }

        // </editor-fold>
        // Perform application initialization that must complete
        // *after* managed components are initialized
        // TODO - add your own initialization code here
        try {
            //      proyectoId = (Integer)getRequestAttribute("idProyecto");
            ConsultarProyecto c = new ConsultarProyecto();
            proyectoId = (Integer) c.getSesion().getAttribute("idProyecto");
            proyectoInvBO = new ProyectoInvestigacionBO();
            proyectoInvVO = new ProyectoInvestigacionVO();
            proyectoInvTO = new ProyectoInvestigacionTO();

            proyectoInvVO.setIdProyecto(proyectoId);

            proyectoInvTO = proyectoInvBO.consultarProyectoById(proyectoInvVO);
            mostrarMatriculaProyecto(proyectoInvTO);
            consultarEstadoProyecto(proyectoInvVO);
        } catch (Exception e) {
            e.getStackTrace();
        }

    }

    /**
     * <p>Callback method that is called after the component tree has been
     * restored, but before any event processing takes place.  This method
     * will <strong>only</strong> be called on a postback request that
     * is processing a form submit.  Customize this method to allocate
     * resources that will be required in your event handlers.</p>
     */
    @Override
    public void preprocess() {
    }

    /**
     * <p>Callback method that is called just before rendering takes place.
     * This method will <strong>only</strong> be called for the page that
     * will actually be rendered (and not, for example, on a page that
     * handled a postback and then navigated to a different page).  Customize
     * this method to allocate resources that will be required for rendering
     * this page.</p>
     */
    @Override
    public void prerender() {
    }

    /**
     * <p>Callback method that is called after rendering is completed for
     * this request, if <code>init()</code> was called (regardless of whether
     * or not this was the page that was actually rendered).  Customize this
     * method to release resources acquired in the <code>init()</code>,
     * <code>preprocess()</code>, or <code>prerender()</code> methods (or
     * acquired during execution of an event handler).</p>
     */
    @Override
    public void destroy() {
    }

    /**
     * <p>Return a reference to the scoped data bean.</p>
     *
     * @return reference to the scoped data bean
     */
    protected SessionBean1 getSessionBean1() {
        return (SessionBean1) getBean("SessionBean1");
    }

    /**
     * <p>Return a reference to the scoped data bean.</p>
     *
     * @return reference to the scoped data bean
     */
    protected RequestBean1 getRequestBean1() {
        return (RequestBean1) getBean("RequestBean1");
    }

    /**
     * <p>Return a reference to the scoped data bean.</p>
     *
     * @return reference to the scoped data bean
     */
    protected ApplicationBean1 getApplicationBean1() {
        return (ApplicationBean1) getBean("ApplicationBean1");
    }
    private ProyectoInvestigacionTO proyectoInvTO;
    private ProyectoInvestigacionBO proyectoInvBO;
    private ProyectoInvestigacionVO proyectoInvVO;
    private LineaInvestigacionVO lineaInvVO;
    private TipoInvestigacionVO tipoInvVO;
    private PersonaVO investigadorPrincipal;
    private List<PersonaVO> coInvestigadores;
    private List<PersonaVO> tecnicosLaboratorio;
    private List<PersonaVO> estudiantes;
    private List<FuenteFinanciacionVO> fuentesFinanciacion;
    private List<GrupoInvestigacionVO> gruposInvestigacion;
    private List<EvaluacionProyectoVO> itemsEvaluacion;
    private List<CriterioEvaluacionVO> criteriosEvaluacion;
    private List<ArchivoVO> archivosProyecto;
    private List<ProductoVO> listaproducto;
    private ProductoVO productoVO;
    private ProductosBO productoBO;
    List collection;
    UISelectItems listMenu;
    private String idProyecto = "",  idPersona = "",  nombrePersona = "",  estadoProyecto = "",  nombreFuente = "",  nombreGrupo = "";
    private int proyectoId = 0,  idFuente = 0,  idGrupo = 0;

    public String buttonFinalizacionCierre_action() {
        //setRequestAttribute(idProyecto, textFieldIdProyecto.getValue());
        return "finalizarProyecto";
    }

    public static void setRequestAttribute(String attribute, Object object) {
        HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        request.setAttribute(attribute, object);
    }

    public static Object getRequestAttribute(String attribute) {
        HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        return request.getAttribute(attribute);
    }

    private void consultarEstadoProyecto(ProyectoInvestigacionVO proyectoInvVO) {
        try {
            proyectoInvBO = new ProyectoInvestigacionBO();
            idProyecto = String.valueOf(proyectoInvVO.getIdProyecto());
            estadoProyecto = proyectoInvBO.consultarEstadoProyecto(idProyecto);
            if (estadoProyecto.equals("REGISTRADO")) {
                buttonRevision.setDisabled(true);
                buttonFinalizacionCierre.setDisabled(true);
            } else if (estadoProyecto.equals("PENDIENTE DE AVAL")) {
                buttonFinalizacionCierre.setDisabled(true);
            } else if (estadoProyecto.equals("PENDIENTE")) {
                buttonFinalizacionCierre.setDisabled(true);
            } else if (estadoProyecto.equals("RECHAZADO")) {
                buttonAnexoInfo.setDisabled(true);
                buttonAvanceActividades.setDisabled(true);
                buttonRevision.setDisabled(true);               
                buttonFinalizacionCierre.setDisabled(true);
            } else if (estadoProyecto.equals("TERMINADO")) {
                buttonAnexoInfo.setDisabled(true);
                buttonAvanceActividades.setDisabled(true);
                buttonRevision.setDisabled(true);                
            } else if (estadoProyecto.equals("CERRADO")) {
                buttonAnexoInfo.setDisabled(true);
                buttonAvanceActividades.setDisabled(true);
                buttonRevision.setDisabled(true);                
                buttonFinalizacionCierre.setDisabled(true);
            }
        } catch (Exception e) {
            e.getStackTrace();
        }
    }

    private void llenarListaCoInvestigadores(List<PersonaVO> coInvestigadores) {
        collection = new ArrayList();
        listMenu = new UISelectItems();
        for (int i = 0; i < coInvestigadores.size(); i++) {
            idPersona = coInvestigadores.get(i).getIdPersona();
            nombrePersona = coInvestigadores.get(i).getNombrePersona();
            collection.add(new SelectItem(idPersona, nombrePersona));
        } // end for            
        listMenu.setValue(collection);
        getMultiSelectListboxCoInvestigador().getChildren().add(listMenu);
    }

    private void llenarListaEstudiantes(List<PersonaVO> estudiantes) {
        collection = new ArrayList();
        listMenu = new UISelectItems();
        for (int k = 0; k < estudiantes.size(); k++) {
            idPersona = estudiantes.get(k).getIdPersona();
            nombrePersona = estudiantes.get(k).getNombrePersona();
            collection.add(new SelectItem(idPersona, nombrePersona));
        } // end for            
        listMenu.setValue(collection);
        getMultiSelectListboxEstidiantes().getChildren().add(listMenu);
    }

    private void llenarListaFuentesFinanaciacion(List<FuenteFinanciacionVO> fuentesFinanciacion) {
        collection = new ArrayList();
        listMenu = new UISelectItems();
        for (int l = 0; l < fuentesFinanciacion.size(); l++) {
            idFuente = fuentesFinanciacion.get(l).getIdFuente();
            nombreFuente = fuentesFinanciacion.get(l).getNombreFunete();
            collection.add(new SelectItem(idFuente, nombreFuente));
        } // end for            
        listMenu.setValue(collection);
        getMultiSelectListboxFuentesFinanciacion().getChildren().add(listMenu);
    }

    private void llenarListaGrupos(List<GrupoInvestigacionVO> gruposInvestigacion) {
        collection = new ArrayList();
        listMenu = new UISelectItems();
        for (int m = 0; m < gruposInvestigacion.size(); m++) {
            idGrupo = gruposInvestigacion.get(m).getIdGrupo();
            nombreGrupo = gruposInvestigacion.get(m).getNombreGrupo();
            collection.add(new SelectItem(idGrupo, nombreGrupo));
        } // end for            
        listMenu.setValue(collection);
        getMultiSelectListboxGrupos().getChildren().add(listMenu);
    }

    private void llenarListaProducto(List<ProductoVO> listaproducto) {
        collection = new ArrayList();
        listMenu = new UISelectItems();
        String idProd = "", nombreProducto = "";

        for (int n = 0; n < listaproducto.size(); n++) {
            idProd = listaproducto.get(n).getIdProducto();
            nombreProducto = listaproducto.get(n).getNombreProducto();
            collection.add(new SelectItem(idProd, nombreProducto));
        } // end for            
        listMenu.setValue(collection);
        getMultiSelectListboxProductos().getChildren().add(listMenu);
    }

    private void llenarListaTecnicosLab(List<PersonaVO> tecnicosLaboratorio) {
        collection = new ArrayList();
        listMenu = new UISelectItems();
        for (int j = 0; j < tecnicosLaboratorio.size(); j++) {
            idPersona = tecnicosLaboratorio.get(j).getIdPersona();
            nombrePersona = tecnicosLaboratorio.get(j).getNombrePersona();
            collection.add(new SelectItem(idPersona, nombrePersona));
        } // end for            
        listMenu.setValue(collection);
        getMultiSelectListboxTecnicoLab().getChildren().add(listMenu);
    }

    private void mostrarMatriculaProyecto(ProyectoInvestigacionTO proyectoInvTO) {
        try {
            productoBO = new ProductosBO();
            productoVO = new ProductoVO();
            proyectoInvVO = new ProyectoInvestigacionVO();
            lineaInvVO = new LineaInvestigacionVO();
            tipoInvVO = new TipoInvestigacionVO();
            investigadorPrincipal = new PersonaVO();
            coInvestigadores = new ArrayList<PersonaVO>();
            tecnicosLaboratorio = new ArrayList<PersonaVO>();
            estudiantes = new ArrayList<PersonaVO>();
            fuentesFinanciacion = new ArrayList<FuenteFinanciacionVO>();
            gruposInvestigacion = new ArrayList<GrupoInvestigacionVO>();
            archivosProyecto = new ArrayList<ArchivoVO>();
            itemsEvaluacion = new ArrayList<EvaluacionProyectoVO>();
            criteriosEvaluacion = new ArrayList<CriterioEvaluacionVO>();
            listaproducto = new ArrayList<ProductoVO>();

            proyectoInvVO = proyectoInvTO.getProyectoInvVO();
            textFieldIdProyecto.setValue(proyectoInvVO.getIdProyecto());
            textFieldEstadoProyecto.setValue(proyectoInvTO.getEstadoProyecto().getEstado());
            textAreaTituloProyecto.setValue(proyectoInvVO.getTituloProyecto());
            textFieldFechaProyecto.setValue(proyectoInvVO.getFechaPresentacion());
            textFieldDuracionProyecto.setValue(proyectoInvVO.getDuracion());
            textAreaPalabrasClave.setValue(proyectoInvVO.getPalabrasClave());
            textFieldElaboradoPor.setValue(proyectoInvVO.getElaboradoPor());

            textAreaResumenProyecto.setValue(proyectoInvVO.getResumenProyecto());
            textAreaPLnteamientoJustificacion.setValue(proyectoInvVO.getPlanteamientoJustificacion());
            textAreaObjetivoGeneral.setValue(proyectoInvVO.getObjetivoGeneral());
            textAreaObjetivoEspecifico.setValue(proyectoInvVO.getObjetivoEspecifico());
            textAreaMetodologias.setValue(proyectoInvVO.getMetodologiaPropuesta());
            textAreaImpactos.setValue(proyectoInvVO.getImpactos());
            textAreaBibliografiaRef.setValue(proyectoInvVO.getBibliografiasReferencia());

            lineaInvVO = proyectoInvTO.getLineaInvestigacion();
            textFieldLineaProyecto.setValue(lineaInvVO.getNombreLinea());

            tipoInvVO = proyectoInvTO.getTipoProyecto();
            textFieldTipoProyecto.setValue(tipoInvVO.getTipoInvastigacion());

            investigadorPrincipal = proyectoInvTO.getInvestigadorPrincipal();
            textFieldInvestigadorPrincipal.setValue(investigadorPrincipal.getNombrePersona());

            coInvestigadores = proyectoInvTO.getCoInvestigadores();
            llenarListaCoInvestigadores(coInvestigadores);

            tecnicosLaboratorio = proyectoInvTO.getTecnicosLaboratorio();
            llenarListaTecnicosLab(tecnicosLaboratorio);

            estudiantes = proyectoInvTO.getEstudiantes();
            llenarListaEstudiantes(estudiantes);

            fuentesFinanciacion = proyectoInvTO.getFuentesFinanciacion();
            llenarListaFuentesFinanaciacion(fuentesFinanciacion);

            gruposInvestigacion = proyectoInvTO.getGruposInvestigacion();
            llenarListaGrupos(gruposInvestigacion);

            listaproducto = productoBO.consulProductoProyecto(proyectoInvVO, productoVO);
            llenarListaProducto(listaproducto);

            archivosProyecto = proyectoInvTO.getArchivosProyecto();
            getSessionBean1().addListaArchivo(archivosProyecto);

            itemsEvaluacion = proyectoInvTO.getListaEvaluacion();
            getSessionBean1().addListaEvaluacionProyecto(itemsEvaluacion);

            criteriosEvaluacion = proyectoInvTO.getListaCriterio();
            getSessionBean1().addListaPromedioProyecto(criteriosEvaluacion);
        } catch (Exception e) {
            e.getStackTrace();
        }
    }

    public String buttonDescargarAnexo_action() {
        try {
            // TODO: Process the action. Return value is a navigation
            // case name where null will return to the same page.
            String archivoProyecto = (String) getValue("#{currentRow.value['nombreArchivo']}");
            ServletContext context = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();
            String path = context.getRealPath("/") + PATH_UPLOAD_PROYECTOS_INV + "\\" + archivoProyecto + ".pdf";
            if (archivoProyecto.equals("")) {
                error("No hay anexos");
                return null;
            }
            Archivo arc = new Archivo();
            arc.downloadFile(archivoProyecto, path);
        } catch (ArchivoException ex) {
            Logger.getLogger(VerProyecto.class.getName()).log(Level.SEVERE, null, ex);
            error("Error al descargar el archivo");
        }
        return null;
    }

    public String buttonVolver_action() {
        return "consultarProyecto";
    }

    public String buttonAvanceActividades_action() {
        //setRequestAttribute(idProyecto, textFieldIdProyecto.getValue());
        return "avanceActividades";
    }

    public String buttonAnexoInfo_action() {
        //setRequestAttribute(idProyecto, textFieldIdProyecto.getValue());
        return "anexoAdicional";
    }

    public String buttonRevision_action() {
        //setRequestAttribute(idProyecto, textFieldIdProyecto.getValue());
        return "revisionProyecto";
    }

    public String buttonAvancePresupuesto_action() {
        return null;
    }

    public String tab4_action() {
        return null;
    }

    public String tab3_action() {
        return null;
    }

    public String tab2_action() {
        return null;
    }
}